Skip to content

Databases: app role and superuser steps, MariaDB binary log, Valkey, Kafka, 24 GiB cap - #10

Merged
stackblaze-adam merged 1 commit into
devfrom
adam/db-superuser-defaults
Nov 30, 2026
Merged

stackblaze-adam merged 1 commit into
devfrom
adam/db-superuser-defaults

Conversation

@stackblaze-adam

Copy link
Copy Markdown
Contributor

Updates the database pages for the platform changes now on production (v3.1.1-sb.1644).

  • PostgreSQL: apps connect as app, the role that owns the database, not postgres. New section on using the superuser: ask the StackBlaze agent to set its password, confirm, then connect as postgres. The public-access example now uses app.
  • MariaDB: apps connect as app, not root. Same root steps, plus MariaDB restarting once after a root change. Server settings now come from a database made 11-29: utf8mb4, log_bin OFF. Binary logging turns on when a CDC connector is added.
  • Valkey: maxmemory is 75% of memory, at most 40% of disk (409 MB on 1 GiB), and is raised when the disk grows.
  • Kafka: the cluster default retention (7 days, 1 GiB per partition), and a CDC source restarting its database once.
  • Plans: a database's memory is capped at 24 GiB.

How it was checked

  • The superuser steps were done through stackblaze agent on dev. The agent asked first, and logins as postgres and root with the new passwords worked.
  • The same reset passed through the API on production.
  • Grants, role attributes and server settings were read from new databases on dev.
  • No new screenshots, and no capture flows were added for these steps.

🤖 Generated with Claude Code

…axmemory, Kafka retention, 24 GiB cap

New PostgreSQL / MariaDB databases connect apps as app, not postgres / root;
how to use the superuser (StackBlaze agent sets its password). MariaDB's
binary log is off until a CDC connector turns it on. Valkey maxmemory is tied
to its disk. Kafka's default retention. Database memory capped at 24 GiB.
Checked on dev and prod (kubero-server #2721, #2733, #2735, #2737, #2730, #2744).

Agent: claude
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stackblaze-adam
stackblaze-adam merged commit cebe363 into dev Nov 30, 2026
1 check passed
stackblaze-adam added a commit that referenced this pull request Nov 30, 2026
Promote dev → main: database pages (#10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant